package com.boolib.commons.util;

import com.google.common.hash.Hashing;

public class EncryptUtil {



    public static String sha256C(String var1, int count){
        String x = var1;
        while(count>0){
            count--;
            x=Hashing.sha256().hashBytes(x.getBytes()).toString();
        }

        return x;

    }

    public static String sha256C2(String var1){
        return sha256C(var1,2);
    }

    public static String sha256C3(String var1){
        return sha256C(var1,3);
    }


    public static String sha256C5(String var1){
        return sha256C(var1,5);
    }
}
